import service from '@/utils/request'

// @Tags ProductSpecEyespleen
// @Summary 创建产品规格-眼型脾型
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductSpecEyespleen true "创建产品规格-眼型脾型"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /productSpecEyespleen/createProductSpecEyespleen [post]
export const createProductSpecEyespleen = (data) => {
  return service({
    url: '/productSpecEyespleen/createProductSpecEyespleen',
    method: 'post',
    data
  })
}

// @Tags ProductSpecEyespleen
// @Summary 删除产品规格-眼型脾型
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductSpecEyespleen true "删除产品规格-眼型脾型"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /productSpecEyespleen/deleteProductSpecEyespleen [delete]
export const deleteProductSpecEyespleen = (params) => {
  return service({
    url: '/productSpecEyespleen/deleteProductSpecEyespleen',
    method: 'delete',
    params
  })
}

// @Tags ProductSpecEyespleen
// @Summary 批量删除产品规格-眼型脾型
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除产品规格-眼型脾型"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /productSpecEyespleen/deleteProductSpecEyespleen [delete]
export const deleteProductSpecEyespleenByIds = (params) => {
  return service({
    url: '/productSpecEyespleen/deleteProductSpecEyespleenByIds',
    method: 'delete',
    params
  })
}

// @Tags ProductSpecEyespleen
// @Summary 更新产品规格-眼型脾型
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductSpecEyespleen true "更新产品规格-眼型脾型"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /productSpecEyespleen/updateProductSpecEyespleen [put]
export const updateProductSpecEyespleen = (data) => {
  return service({
    url: '/productSpecEyespleen/updateProductSpecEyespleen',
    method: 'put',
    data
  })
}

// @Tags ProductSpecEyespleen
// @Summary 用id查询产品规格-眼型脾型
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ProductSpecEyespleen true "用id查询产品规格-眼型脾型"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /productSpecEyespleen/findProductSpecEyespleen [get]
export const findProductSpecEyespleen = (params) => {
  return service({
    url: '/productSpecEyespleen/findProductSpecEyespleen',
    method: 'get',
    params
  })
}

// @Tags ProductSpecEyespleen
// @Summary 分页获取产品规格-眼型脾型列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取产品规格-眼型脾型列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /productSpecEyespleen/getProductSpecEyespleenList [get]
export const getProductSpecEyespleenList = (params) => {
  return service({
    url: '/productSpecEyespleen/getProductSpecEyespleenList',
    method: 'get',
    params
  })
}
